package house.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.sun.xml.internal.ws.developer.Serialization;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

@Entity
public class Device extends BasicEntity{

    private String name;
    private String description;
    private String pic;

    @JSONField(serialize = false)
    @ManyToOne
    private House house;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public House getHouse() {
        return house;
    }

    public void setHouse(House house) {
        this.house = house;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
